package com.jymj.entity.gantt;

import java.io.Serializable;

/**
 * Created by ljj on 2017/6/14.
 */
public class GanttLinkEntity implements Serializable {

    private Integer id;
    private Integer source;
    private Integer target;
    private Integer type;
    private transient Integer pjid;
    private Integer delay = 0;
    private String sourceTask;
    private String targetTask;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    public Integer getTarget() {
        return target;
    }

    public void setTarget(Integer target) {
        this.target = target;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getPjid() {
        return pjid;
    }

    public void setPjid(Integer pjid) {
        this.pjid = pjid;
    }

    public String getSourceTask() {
        return sourceTask;
    }

    public void setSourceTask(String sourceTask) {
        this.sourceTask = sourceTask;
    }

    public String getTargetTask() {
        return targetTask;
    }

    public void setTargetTask(String targetTask) {
        this.targetTask = targetTask;
    }

    public Integer getDelay() {
        if (delay == null) {
            return 0;
        }
        return delay;
    }

    public void setDelay(Integer delay) {
        this.delay = delay;
    }
}
